package com.eamois.dao.manual.impl;

import java.sql.SQLException;
import java.util.Collection;

import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;

import com.eamois.dao.impl.BaseDaoImpl;
import com.eamois.dao.manual.ModifyInfoDao;
import com.eamois.domain.manual.Catalog;
import com.eamois.domain.manual.ModifyInfo;

public class ModifyInfoDaoImpl extends BaseDaoImpl<ModifyInfo> implements ModifyInfoDao{

	@SuppressWarnings("unchecked")
	public Collection<ModifyInfo> findAll() {
		// TODO Auto-generated method stub
		return (Collection<ModifyInfo>)this.getHibernateTemplate().execute(new HibernateCallback() {

			@Override
			public Object doInHibernate(Session arg0)
					throws HibernateException, SQLException {
				// TODO Auto-generated method stub
				Criteria criteria = arg0.createCriteria(ModifyInfo.class);
				return criteria.list();
			}
			
		});
	}

	
}
